//
//  UIColor+Extention.swift
//  sinazd
//
//  Created by apple on 16/3/16.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit
extension UIColor {
    //获取一个随机颜色
    class func randomColor() -> UIColor {
        
        //random() % 256   0 ~ 255
        let r = CGFloat(random() % 256) / 255.0
        let g = CGFloat(random() % 256) / 255.0
        let b = CGFloat(random() % 256) / 255.0
        return UIColor(red: r, green: g, blue: b, alpha: 1)
    }
}
